package com.example.user.model;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User {
    /**
     * 主键ID
     */
    @TableId
    private Long id;

    /**
     * 姓名
     */
    @TableField("user_name")
    private String user_name;

    /**
     * 年龄
     */
    @TableField("avatar_url")
    private String avatar_url;

    /**
     * 邮箱
     */
    @TableField("gender")
    private String gender;

    /**
     *
     */
    @TableField("user_account")
    private String userAccount;

    /**
     *
     */
    @TableField("password")
    private String password;

    /**
     *
     */
    @TableField("phone")
    private String phone;

    /**
     *
     */
    @TableField("email")

    private String email;

    /**
     *
     */
    @TableField("is_valid")

    private Integer is_valid;

    /**
     *
     */
    @TableField("create_time")

    private Date create_time;

    /**
     *
     */
    @TableField("update_time")

    private Date update_time;

    /**
     *
     */
    @TableLogic
    private Integer is_delete;

    /**
     * 0 - 用户 1 - 管理员
     */
    @TableField("user_role")
    private Integer user_role;
}